import { DELETE, GET, POST } from "./api";

// 查询接口
export const listApi =  (param)=> {
    return GET("/setting/list", param)
}

// 更新接口
export const updateByIdApi =  (param)=> {
    return POST("/setting/updateById", param)
}

// 字段集合
export const formulaFieldsApi =  (param)=> {
    return GET("/formula/fields", param)
}

// 符号集合
export const formulaOperatorsApi =  (param)=> {
    return GET("/formula/operators", param)
}

// 列表接口
export const formulaListApi =  (param)=> {
    return GET("/formula/list", param)
}

// 保存接口
export const formulaCreateApi =  (param)=> {
    return POST("/formula/create", param)
}

// 更新接口
export const formulaUpdateApi =  (param)=> {
    return POST("/formula/update", param)
}

// 删除接口
export const formulaDeleteApi =  (id)=> {
    return DELETE(`/formula/delete?id=${id}`)
}


